#!/usr/bin/env python3
# coding:utf-8

from loguru import logger

# 方法1: 指定路径
logger.add("/tmp/test.log")
logger.debug('111')

# 方法2: 路径带 变量名
log_path = "/tmp/clea_log_service"
logger.add("%s/{time}.log"%(log_path))
logger.debug('this is a debug')
